<template>
  <div v-loading="loading">
    {{ hint }}
  </div>
</template>

<script>
import { getTongBangState } from '../api'
export default {
  data () {
    return {
      hint: '',
      loading: false
    }
  },
  created () {
    this.isCreated()
  },
  methods: {
    isCreated () {
      getTongBangState().then(res => {
        if (res) {
          // this.getList()
          this.hint = '欢迎使用带量食谱'
          this.$router.push('/childCare/cookbook/brief')
        } else {
          this.hint = '您的园暂时还未开通带量食谱！'
        }
      })
    }
  }
}
</script>

<style scoped>

</style>
